import request from '@/utils/request'

// 查询车速溯源列表
export function listCarspeedtask(query) {
  return request({
    url: '/system/carspeedtask/list',
    method: 'get',
    params: query
  })
}

// 查询车速溯源详细
export function getCarspeedtask(ID) {
  return request({
    url: '/system/carspeedtask/' + ID,
    method: 'get'
  })
}

// 新增车速溯源
export function addCarspeedtask(data) {
  return request({
    url: '/system/carspeedtask',
    method: 'post',
    data: data
  })
}

// 修改车速溯源
export function updateCarspeedtask(data) {
  return request({
    url: '/system/carspeedtask',
    method: 'put',
    data: data
  })
}

// 删除车速溯源
export function delCarspeedtask(ID) {
  return request({
    url: '/system/carspeedtask/' + ID,
    method: 'delete'
  })
}
